package com.example.demo111111.dao;


import com.example.demo111111.entity.Category;
import com.example.demo111111.entity.Merchant;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CategoryDao {


    Boolean save(Category category);

    Boolean update(Category category);

    Page<Category> pageQuery(Category category);


    @Delete("delete  from category where id=#{id}")
    Boolean deleteById(Long id);
}
